get string after character javascript

106

get everything after the first character javascript -

var val = 'asdasd:111122:123123123';
var response = val.substring(val.indexOf(":"));

alert(response); // ":111122:123123123"

Comments

Submit
0 Comments